import {getSeller,getGoods,getRatings} from "api/api";

export default{
    async getSeller({commit}){
        const {data}= await getSeller();
        console.log(data);
            commit("getSeller",data)
            return data;
    },
    async getGoods({commit}){
        const {data}= await getGoods();
        console.log("goods",data);
            commit("getGoods",data)
            return data;
    },
    async getRatings({commit}){
        const {data}= await getRatings();
        console.log("rating",data);
            commit("getRatings",data)
            return data;
    }
}